package com.tangcan.blog.Mapper;


import com.tangcan.blog.Entity.BlogContent;
import com.tangcan.blog.Entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TestMapper {

    @Select("SELECT * FROM User")
    List<User> FindAll();


    @Select("SELECT * FROM BlogContent ORDER BY Id DESC")
    List<BlogContent>GetAll();

}
